var win = Titanium.UI.currentWindow;

var android = 1;
var username = Titanium.UI.createTextField({
	autocapitalization:Titanium.UI.TEXT_AUTOCAPITALIZATION_NONE,
	width:300,
	top:10,
	height: android ? 45 : 35,
	borderStyle:Titanium.UI.INPUT_BORDERSTYLE_ROUNDED,
	hintText:'b-pack Username'
});
win.add(username);

var password = Titanium.UI.createTextField({
	autocapitalization:Titanium.UI.TEXT_AUTOCAPITALIZATION_NONE,
	width:300,
	top:android ? 65 : 55,
	height:android ? 45 : 35,
	borderStyle:Titanium.UI.INPUT_BORDERSTYLE_ROUNDED,
	passwordMask:true,
	hintText:'b-pack Password'
});
win.add(password);

var button = Titanium.UI.createButton({
	title:'Login',
	top: android ? 120 : 100,
	width:300,
	height: android ? 45 : 40
});
win.add(button);


button.addEventListener('click', function()
{
	var xhr = Titanium.Network.createHTTPClient();

});



